
package com.amigo.online.provider.merchant.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.amigo.online.common.core.mybatis.MyMapper;
import com.amigo.online.provider.merchant.model.entity.GoodsImg;

@Mapper

public interface GoodsImgMapper extends MyMapper<GoodsImg> {

    @Update("update goods_img_tbl set deleted = 1 where goods_id = #{goodsId}")
    int deleteGoodsImgById(@Param("goodsId") long goodsId);

    List<GoodsImg> getImg(Long goodsId);

    List<GoodsImg> getImgByGoodsIds(@Param("goodsIds") List<Long> goodsIds);

}